package org.groupg.practice.guava;

import com.google.common.collect.MapMaker;
import java.util.concurrent.ConcurrentMap;

public class ConcurrentMapExample {
    public static void main(String[] args) {
        ConcurrentMap<Integer, String> concurrentMap = new MapMaker()
            .concurrencyLevel(4)
            .makeMap();

        concurrentMap.put(1, "one");
        concurrentMap.put(2, "two");
        System.out.println("Map size: " + concurrentMap.size());
    }
}